package com.kabigon.jvm.stack;

import java.util.Objects;

/**
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.jvm.stack
 * @data 2023/2/18 20:16
 */
public class User {
    String name;

     public String getName() {
          return name;
     }

     public void setName(String name) {
          this.name = name;
     }

     @Override
     public boolean equals(Object o) {
          if (this == o) return true;
          if (o == null || getClass() != o.getClass()) return false;
          User user = (User) o;
          return Objects.equals(name, user.name);
     }

     @Override
     public int hashCode() {
          return Objects.hash(name);
     }
}
